package com.xbongbong.saas.model;

import java.util.List;
import java.util.Map;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.saas.domain.entity.SmartReplenishmentEntity;
import com.xbongbong.saas.domain.entity.SupplierProductEntity;


/**
 * @author bomfish
 */
public interface SmartReplenishmentModel {
   Long insert(SmartReplenishmentEntity entity);

   void insertBatch(List<SmartReplenishmentEntity> list);

   List<SmartReplenishmentEntity> findEntitys(Map<String, Object> param);

   Integer getEntitysCount(Map<String, Object> param);

   void update(SmartReplenishmentEntity entity);

   SmartReplenishmentEntity getByKey(Long key, String corpid);

   List<SmartReplenishmentEntity> getEnablePurchasePassage(Map<String,Object> param);

   List<SmartReplenishmentEntity> getEnableMiniStock(Map<String,Object> param);

   List<SmartReplenishmentEntity> getAllEnable(Map<String,Object> param);

   List<SmartReplenishmentEntity> getAllNotEnable(Map<String,Object> param);

   Integer countEnablePurchasePassage(Map<String,Object> param);

   Integer countEnableMiniStock(Map<String,Object> param);

   Integer countAllEnable(Map<String,Object> param);

   Integer countAllNotEnable(Map<String,Object> param);

   Integer updateBatch (List<SmartReplenishmentEntity> list, String corpid);

   SmartReplenishmentEntity getByProducId(String corpid,Long productId);

    List<SmartReplenishmentEntity> getByProductList(String corpid,List<Long> productIdList);

}
